import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * This class represents a concrete Implementation for the Planet Mercury.
 * 
 * @author (Dilyan GEORGIEV)
 * @author (Thomas KOBER)
 * @author (Matthew MCDONALD)
 * 
 * @version (1.0)
 */
public class Mercury extends Planet
{
    ////////////////////////////////////////////////////////////////////////////////
    // Public Implementation
    ////////////////////////////////////////////////////////////////////////////////
    
    /**
     * Act - do whatever the Mercury wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act() 
    {
        // Add your action code here.
    }    
    
    public boolean equals(Object o)
    {
        boolean equals = false;
        
        if (o != null) {
            if (this == o) {
                equals = true;
            } else {
                if (o instanceof Mercury) {
                    Mercury other = (Mercury)o;
                    
                    if (other.getCost().equals(this.getCost()) && other.isGoalPlanet() == this.isGoalPlanet()) {
                        equals = true;
                    }
                }
            }
        }
        
        return equals;
    }
}
